home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / update.d / 60swap < prev    next >
Text File  |  2008-10-29  |  426b  |  28 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. dev=$1
  6. num=$2
  7. id=$3
  8. size=$4
  9. type=$5
  10. fs=$6
  11. path=$7
  12. name=$8
  13.  
  14. cd $dev
  15.  
  16. [ -f $id/method ] || exit 0
  17. method=$(cat $id/method)
  18.  
  19. if [ "$method" = swap ]; then
  20.     RET=''
  21.     db_metaget partman/filesystem_short/linux-swap description || RET=''
  22.     printf "${RET:-swap}" >$id/visual_filesystem
  23.     printf "${RET:-swap}" >$id/visual_mountpoint
  24.  
  25.     open_dialog CHANGE_FILE_SYSTEM $id linux-swap
  26.     close_dialog
  27. fi
  28.